<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>对象身上删除某个变量或方法</title>
		<script type="text/javascript">
			//创建一个
			let stu = {
				 sutName : "张家鹏",
				 sutAge : 18,
				 stuAddress : "湖北省襄阳市",
				 stuHobby : "吃饭碎觉打豆豆",
				fun:function(){
					console.log("你好，"+ stu.stuName + "又见面啦");
				}
			};
			console.log(stu);
			//delete 从一个对象身上删除某个变量或方法
			delete stu.stuHobby;
			console.log(stu);
		</script>
	</head>
	<body>
	</body>
</html>